package com.example.demo3.bean;

import lombok.Data;

import javax.validation.constraints.*;
import java.util.List;

@Data
public class UserAddVo {
    //手机验证用：@Pattern(regexp = "^[1][3,4,5,6,7,8,9][0-9]{9}$", message = "手机号格式有误")

    @NotNull(message = "id不能为空")
    @Min(value = 20)
    @Max(value = 90)
    private Integer id;


    @NotBlank(message = "名字不能为空")
    private String name;

    @NotBlank(message = "名字不能为空")
    private String sex;

//    @NotEmpty(message = "列表不能为空")
    private List<String> booklist;
}
